<template>
  <div class="layout-main">
    <el-carousel :interval="4000" type="card" height="400px">
      <el-carousel-item v-for="item in 6" :key="item">
        <h3 text="2xl" justify="center">{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
    <div class="main-body">
      <div class="title-wrapper">
        <h1>户外广告机服务提供商</h1>
        <span
          >公司秉承质量、服务上的宗旨，按照客户需求精心设计、科学管理、严格生产</span
        >
      </div>
      <div class="service-list">
        <div v-for="item in 4" class="service-list--item">
          <div class="icon-wrapper"></div>
          <span>品牌可信赖</span>
          <span>多年设计经验，产品贯穿每一个行业 覆盖多个城市的户外广告</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup></script>

<style lang="scss" scoped>
.layout-main {
  margin-top: 18px;
  width: 100%;
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.main-body {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 100px;

  .title-wrapper {
    width: 100%;
    text-align: center;
    h1 {
      font-size: 34px;
    }

    span {
      line-height: 32px;
      font-size: 14px;
      color: #999;
    }
  }

  .service-list {
    margin-top: 32px;
    display: flex;
    .service-list--item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 32px;

      .icon-wrapper {
        height: 117px;
        width: 117px;
        background-color: #99a9bf;
        border-radius: 50%;
      }
      span:nth-of-type(1) {
        color: #2b2b2b;
        line-height: 36px;
      }
      span:nth-of-type(2) {
        color: #999;
        font-size: 14px;
      }
    }
  }
}
</style>
